package main

import "fmt"

type Man struct{
	name string
	age int
}

func NewMan(name string,age int) *Man{
	return &Man{name,age}
}

func main(){
	man1:=new(Man)
	man2:=&Man{}
	man3:=&Man{"Tom",18}
	man4:=&Man{name:"Tom",age:18}
	man5:=NewMan("Tom",18)
	fmt.Println(man1,man2,man3,man4,man5)
}